/**
 * @description video module
 * @author wangfupeng
 */

import { IModuleConf } from '@wangeditor/editor';
import withVideo from './plugin';
import { renderVideoConf } from './render-elem';
// import { videoToHtmlConf } from './elem-to-html'
// import { preParseHtmlConf } from './pre-parse-html'
// import { parseHtmlConf } from './parse-elem-html'
import { editorVideSizeMenuConf, deleteVideoMenuConf, uploadVideoMenuConf } from './menu/index';
import { MediaBottomMenuConf, MediaMiddleMenuConf, MediaTopMenuConf } from '../menu/index';

const mediaModule: Partial<IModuleConf> = {
	renderElems: [renderVideoConf],
	// elemsToHtml: [videoToHtmlConf],
	// preParseHtml: [preParseHtmlConf],
	// parseElemsHtml: [parseHtmlConf],
	menus: [editorVideSizeMenuConf, deleteVideoMenuConf, uploadVideoMenuConf, MediaBottomMenuConf, MediaMiddleMenuConf, MediaTopMenuConf],
	editorPlugin: withVideo
};

export default mediaModule;
